package com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author tongchen
 * @create 2022-12-11 12:34
 */
//1.使用controller定义bean
    @Controller
public class UserController {
        //设置访问路径
    @RequestMapping("/save")
    //设置返回值
    @ResponseBody
    public String save(){
        return "{save:controller}";
    }
}
